package com.newshub.admin.entity;

import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * RSS 订阅源配置实体，对应表：rss_feeds
 */
@Data
public class RssFeed {
    private Integer id;
    private String name;
    private String url;
    private Integer sourceId;
    private Integer categoryId;
    private Integer regionId;
    private Integer status; // 1: 启用, 0: 禁用
    private String fetchTime; // HH:mm:ss
    private LocalDate lastFetchDate;

    private String rssVersion; // rss2 / atom / rss1 / unknown
    private String rssSourceType; // rsshub / direct / other

    private String etag;
    private String lastModified;

    private LocalDateTime lastFetchAt;
    private LocalDateTime lastErrorAt;
    private Integer errorCount;
    private Integer fetchCount;

    private Boolean deleted;
    private LocalDateTime deletedAt;
    private String remark;

    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
}




